const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')

module.exports = {
  mode: 'none',
  devtool: 'inline-source-map',
  devServer: {
    contentBase: './dist',
    port: '2369'
  },
  plugins: [
    new HtmlWebpackPlugin({
      filename: 'app.html',
      title: 'page title index'
    })
  ],
  output: {
    path: path.resolve(__dirname, 'dist'),
    filename: 'app.js',
    clean: true
  },
}
